package com.abss.vote.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 浏览用户
 */
public class User {

    private Integer ID;

    private String USER_ID;//用户ID

    private String NICKNAME;//用户名

    private String COUNTRY;//国家

    private String PROVINCE;//省

    private String CITY;//市

    private String GENDER;//性别

    private String HEAD_IMG_URL;//头像地址

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy年MM月dd日 HH:mm:ss")
    private Date ADD_TIME;//加入时间

    private Integer ACTIVITY_ID;//活动ID

    private Integer LEFT_VOTES;//今日剩余投票数 获取该值时 应该根据最后更新时间 来修改并刷新为最新的值 ，所有在前一天及之前的数据v都要刷新为最大值 时间在今天之内的无需刷新

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy年MM月dd日 HH:mm:ss")
    private Date LAST_UPDATE_TIME;//最后更新时间

    private String IS_SUBSCRIBE;//是否订阅

    private int LAST_ACTIVITY_ID;//最后一次浏览活动ID

    private String access_token;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getIS_SUBSCRIBE() {
        return IS_SUBSCRIBE;
    }

    public void setIS_SUBSCRIBE(String IS_SUBSCRIBE) {
        this.IS_SUBSCRIBE = IS_SUBSCRIBE;
    }

    public int getLAST_ACTIVITY_ID() {
        return LAST_ACTIVITY_ID;
    }

    public void setLAST_ACTIVITY_ID(int LAST_ACTIVITY_ID) {
        this.LAST_ACTIVITY_ID = LAST_ACTIVITY_ID;
    }

    public Integer getID() {
        return ID;
    }

    public void setID(Integer ID) {
        this.ID = ID;
    }

    public String getUSER_ID() {
        return USER_ID;
    }

    public void setUSER_ID(String USER_ID) {
        this.USER_ID = USER_ID == null ? null : USER_ID.trim();
    }

    public String getNICKNAME() {
        return NICKNAME;
    }

    public void setNICKNAME(String NICKNAME) {
        this.NICKNAME = NICKNAME == null ? null : NICKNAME.trim();
    }

    public String getCOUNTRY() {
        return COUNTRY;
    }

    public void setCOUNTRY(String COUNTRY) {
        this.COUNTRY = COUNTRY == null ? null : COUNTRY.trim();
    }

    public String getPROVINCE() {
        return PROVINCE;
    }

    public void setPROVINCE(String PROVINCE) {
        this.PROVINCE = PROVINCE == null ? null : PROVINCE.trim();
    }

    public String getCITY() {
        return CITY;
    }

    public void setCITY(String CITY) {
        this.CITY = CITY == null ? null : CITY.trim();
    }

    public String getGENDER() {
        return GENDER;
    }

    public void setGENDER(String GENDER) {
        this.GENDER = GENDER == null ? null : GENDER.trim();
    }

    public String getHEAD_IMG_URL() {
        return HEAD_IMG_URL;
    }

    public void setHEAD_IMG_URL(String HEAD_IMG_URL) {
        this.HEAD_IMG_URL = HEAD_IMG_URL == null ? null : HEAD_IMG_URL.trim();
    }

    public Date getADD_TIME() {
        return ADD_TIME;
    }

    public void setADD_TIME(Date ADD_TIME) {
        this.ADD_TIME = ADD_TIME;
    }

    public Integer getACTIVITY_ID() {
        return ACTIVITY_ID;
    }

    public void setACTIVITY_ID(Integer ACTIVITY_ID) {
        this.ACTIVITY_ID = ACTIVITY_ID;
    }

    public Integer getLEFT_VOTES() {
        return LEFT_VOTES;
    }

    public void setLEFT_VOTES(Integer LEFT_VOTES) {
        this.LEFT_VOTES = LEFT_VOTES;
    }

    public Date getLAST_UPDATE_TIME() {
        return LAST_UPDATE_TIME;
    }

    public void setLAST_UPDATE_TIME(Date LAST_UPDATE_TIME) {

        this.LAST_UPDATE_TIME = LAST_UPDATE_TIME;
    }



    @Override
    public String toString() {
        return "User{" +
                "ID=" + ID +
                ", USER_ID='" + USER_ID + '\'' +
                ", NICKNAME='" + NICKNAME + '\'' +
                ", COUNTRY='" + COUNTRY + '\'' +
                ", PROVINCE='" + PROVINCE + '\'' +
                ", CITY='" + CITY + '\'' +
                ", GENDER='" + GENDER + '\'' +
                ", HEAD_IMG_URL='" + HEAD_IMG_URL + '\'' +
                ", ADD_TIME=" + ADD_TIME +
                ", ACTIVITY_ID=" + ACTIVITY_ID +
                ", LEFT_VOTES=" + LEFT_VOTES +
                ", LAST_UPDATE_TIME=" + LAST_UPDATE_TIME +
                '}';
    }
}